import request from '../request.js'
// 获取歌单的详情
export const getSongListDetail = (id) =>{
    return request({
        url:'/playlist/detail',
        params:{
            id,
            timestamp:Date.parse(new Date())
        }
        
    })
}
// 获取歌单中歌曲详情
export const getEverySongDetail = (ids) =>{
    return request({
        url:'/song/detail',
        params:{
            ids // 音乐id(支持多个id，用,隔开)
        }
    })
}
// 收藏，取消歌单
export const subSongList = (t,id) =>{
    return request({
        url:'/playlist/subscribe',
        params:{
            t,
            id,
            timestamp:Date.parse(new Date())
        }
    })
}